package com.ubigate.android.qmode.main;

public class NFCReadingManager {
	
	private volatile static NFCReadingManager nfcReadingManager;
	
	public static NFCReadingManager getInstance() {
		if (nfcReadingManager == null) {
            synchronized(NFCReadingManager.class) {
                if (nfcReadingManager == null) {
                	nfcReadingManager = new NFCReadingManager();
                }
            }
        }
        return nfcReadingManager;
	}
	
	
	private NFCReadingManager() {

	}
	
	private NFCReadingListener nfcReadingListener;
	
	public void setNfcReadingListener(NFCReadingListener nfcReadingListener) {
		this.nfcReadingListener = nfcReadingListener;
	}
	public void notifyNFCRecognize() {
		if(nfcReadingListener != null){
			nfcReadingListener.onDetectedNFC();
		}
	}
}
